package ${packageName}.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ${packageName}.dao.${className}Dao;
import ${packageName}.entity.${className}Entity;
import ${packageName}.service.${className}Service;

/**
 * @See 此处添加类注释
 */
@Service
public class ${className}ServiceImpl implements ${className}Service{
	
	@Autowired
	private ${className}Dao ${table}Dao;
	@Override
	public ${className}Entity selectById(String id) {
		return ${table}Dao.selectById(id);
	}
	@Override
	public void insert(${className}Entity ${table}) {
		${table}Dao.insert(${table});
	}

	@Override
	public void delete(String id) {
		${table}Dao.delete(id);
	}

	@Override
	public void update(${className}Entity ${table}) {
		${table}Dao.update(${table});
	}


	@Override
	public List<${className}Entity> listByMap(Map<String, Object> param) {
		return ${table}Dao.listByMap(param);
	}

}
